.class public Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;
.super Ljava/lang/Object;
.source "EditPictureDisplayDurationDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;
    }
.end annotation


# instance fields
.field private a:Lcom/esfile/screen/recorder/ui/a;

.field private b:Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;

.field private c:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

.field private d:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

.field private e:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v0, p1}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    .line 3
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_picture_display_duration_edit_dialog:I

    const/4 v2, 0x0

    .line 4
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    .line 6
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->c(Landroid/view/View;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Z)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/h;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/h;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    sget v1, Les/z4;->durec_picture_display_duration_dialog_title:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->setTitle(I)V

    .line 11
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_caption_time_pick_width:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    .line 12
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_caption_time_pick_margin:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 13
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v2, Les/v4;->durec_dialog_padding:I

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    mul-int/lit8 v0, v0, 0x4

    mul-int/lit8 v1, v1, 0x3

    add-int/2addr v0, v1

    mul-int/lit8 p1, p1, 0x2

    add-int/2addr v0, p1

    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/ui/a;->e(I)V

    return-void
.end method

.method private c(Landroid/view/View;)V
    .locals 2

    .line 1
    sget v0, Les/x4;->start_time_picker:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->c:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    .line 2
    sget v0, Les/x4;->end_time_picker:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->d:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    .line 3
    sget v0, Les/x4;->neg_btn:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/g;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/g;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    sget v0, Les/x4;->pos_btn:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/i;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/i;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    return-void
.end method

.method public a(JJJ)V
    .locals 7

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->d:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    long-to-int p2, p1

    int-to-long v1, p2

    long-to-int p1, p3

    int-to-long v3, p1

    long-to-int p1, p5

    int-to-long v5, p1

    invoke-virtual/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;->a(JJJ)V

    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;)V
    .locals 0

    .line 1
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->e:Z

    if-nez p1, :cond_0

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->b:Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;

    if-eqz p1, :cond_0

    .line 2
    invoke-interface {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;->a()V

    :cond_0
    return-void
.end method

.method public synthetic a(Landroid/view/View;)V
    .locals 0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;)V
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->b:Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;

    return-void
.end method

.method public b(JJJ)V
    .locals 7

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->c:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    long-to-int p2, p1

    int-to-long v1, p2

    long-to-int p1, p3

    int-to-long v3, p1

    long-to-int p1, p5

    int-to-long v5, p1

    invoke-virtual/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;->a(JJJ)V

    return-void
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 6

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->c:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;->getTime()J

    move-result-wide v0

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->d:Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/timepicker/TimePickerView;->getTime()J

    move-result-wide v2

    cmp-long p1, v0, v2

    if-ltz p1, :cond_0

    .line 3
    sget p1, Les/z4;->durec_subtitles_time_warn:I

    invoke-static {p1}, Les/ec;->a(I)V

    return-void

    :cond_0
    const-wide/16 v4, 0x3e8

    add-long/2addr v4, v0

    cmp-long p1, v4, v2

    if-lez p1, :cond_1

    .line 4
    sget p1, Les/z4;->durec_subtitle_duration_limit_prompt:I

    invoke-static {p1}, Les/ec;->a(I)V

    return-void

    :cond_1
    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->e:Z

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->b:Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;

    if-eqz p1, :cond_2

    .line 7
    invoke-interface {p1, v0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;->a(JJ)V

    .line 8
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    return-void
.end method
